#include "mytools.h"
#include <ctype.h>
#include <stdio.h>
#include <string.h>

/// @brief 打印一条横线, 共40个-
void print_line() {
  for (int i = 0; i < 40; i++) {
    printf("-");
  }
  printf("\n");
}

/// @brief 打印标题
/// @param const char *title  标题字符串
void print_title(const char *title) {
  print_line();
  // 转换title为大写字母并打印
  for (int i = 0; i < strlen(title); i++) {
    printf("%c", toupper(title[i]));
  }
  printf("\n");
  print_line();
}